package xyz.hzxiao.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.hzxiao.annotation.Limit;

/**
 * 请求限流控制器
 *
 * @author ：FuXx
 * @className : xyz.hzxiao.controller.RequestLimitController
 * @since ：2025/3/28
 */
@RestController
public class RequestLimitController {

    @Limit(LIMIT_TIME = 1)
    @GetMapping("/testLimit")
    public String test() {
        return "成功响应";
    }
}
